<?php
class SettingSaveSeoAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'json';
	}
	
	protected function afterConstruct()
	{
		$this->parseDtds('seo','setting');
	}
	
	public function execute()
	{
		$data = $this->getValidData();
		Util::updateSetting(array('seo'=>$data));
		
		$this->code = 200;
	}
}
